﻿<Window x:Class="ContentFinder.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Finder" Height="400" Width="600" ResizeMode="CanResize">
    <Grid>        
        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition Height="20" />
            <RowDefinition Height="252*" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <Menu Grid.Row="0" IsMainMenu="True">
            <MenuItem Header="_File">
                <MenuItem Header="_Export" Click="Export_Click"/>
                <Separator/>
                <MenuItem Header="Close" Click="Close_Click"/>
            </MenuItem>
            <!--<MenuItem Header="Edit">
                <MenuItem Header ="_Copy" InputGestureText ="Ctrl+C" Command = "Copy"/>
                <MenuItem Header ="Cut" InputGestureText ="Ctrl+X" Command = "Cut" />
                <MenuItem Header ="_Paste" InputGestureText ="Ctrl+P" Command = "Paste"/>
                <Separator/>
                <MenuItem Header="Select All" InputGestureText ="Ctrl+A" Command ="SelectAll"/>
            </MenuItem>-->
            <MenuItem Header="Search">
                <MenuItem Header="Match Case" IsCheckable="True" IsChecked="False" Click="MenuItem_Click" />               
                <Separator/>
                <MenuItem Header="Enable Regex" IsCheckable="True" IsChecked="True" Click="MenuItem_Click" />
            </MenuItem>
            <MenuItem Header="Help">
                <MenuItem Header="Finder Website" Click="FinderWebsite_Click"/>
                <Separator/>
                <MenuItem Header="Contact Author" Click="ContactAuthor_Click"/>                         
            </MenuItem>
        </Menu>
        <StackPanel Orientation="Horizontal"  Grid.ColumnSpan="2" Grid.Row="1">
            <TextBox Name="tbContent" Width="106" Text="Your Content" ToolTip="Insert your content and type {ENTER} can start search" KeyDown="tbContent_KeyDown" />
            <TextBox Name="tbPath"   Width="471" HorizontalAlignment="Right"  Text="Searched Path" ToolTip="Insert your searched directory and split with ;" KeyDown="tbContent_KeyDown" />
        </StackPanel>
       
        <ListView Grid.Row="2" Grid.ColumnSpan="2" Name="lvResult" MouseDoubleClick="lvResult_MouseDoubleClick">
            <ListView.View>
                <GridView AllowsColumnReorder="true" ColumnHeaderToolTip="Content Information" >
                    <GridViewColumn DisplayMemberBinding="{Binding Usage}"  Header="Usage" Width="100"/>
                    <GridViewColumn DisplayMemberBinding="{Binding LineNum}"  Header="Line Num" Width="100"/>
                    <GridViewColumn DisplayMemberBinding="{Binding FileFullname}" Header="File Full Name" Width="400"/>
                </GridView>
            </ListView.View>
        </ListView>
        <Label Grid.Row="3" Grid.Column="0" Name="lbStatus" />
    </Grid>
</Window>
